module.exports = {
  value: {
    type: String,
    default: '',
    name: '选中标签名称',
    filedType: 'value',
    dataSource: {
      from: 'list',
      type: 'array',
      labelKey: 'label',
      valueKey: 'value'
    }
  },

  isLayout: {
    type: Boolean,
    default: false,
    name: '开启布局',
    filedType: 'switch'
  },
  list: {
    type: Object,
    default () {
      return [
        {
          name: '标签1',
          anchor: 'aaa',
          value: '1'
        },
        {
          name: '标签2',
          anchor: 'bbb',
          value: '2'
        },
        {
          name: '标签2',
          anchor: 'bbb',
          value: '3'
        }
      ]
    },
    name: 'tab列表',
    filedType: 'api'
  },

  fontSize: {
    type: String,
    default: '14px',
    name: '字体大小',
    filedType: 'string'
  },

  height: {
    type: String,
    default: '30px',
    name: '标签高度',
    filedType: 'string'
  },
  radiusSize: {
    type: String,
    default: '1px',
    name: '背景圆角尺寸',
    filedType: 'string'
  },

  bgColor: {
    type: String,
    default: '#fff',
    name: '背景颜色',
    filedType: 'color'
  },

  top: {
    type: String,
    default: 'auto',
    name: '距顶部距离',
    filedType: 'string'
  },
  bottom: {
    type: String,
    default: '100px',
    name: '距底部距离',
    filedType: 'string'
  },
  right: {
    type: String,
    default: '15px',
    name: '右侧边界距离',
    filedType: 'string'
  },

  color: {
    type: String,
    default: '#333',
    name: '文本颜色',
    filedType: 'color'
  },

  icons: {
    type: Array,
    default () {
      return []
    },
    name: '图标列表',
    filedType: 'file',
    limit: 100,
    maxSize: 1024
  },

  hoverIcons: {
    type: Array,
    default () {
      return [
      ]
    },
    name: '滑过图标列表',
    filedType: 'file',
    limit: 100,
    maxSize: 1024
  },

  zIndex: {
    type: String,
    default: '',
    name: 'z-index',
    nameTip: 'fix 不能置顶问题',
    filedType: 'string'
  },

  imgWidth: {
    type: String,
    default: '100%',
    name: '图片宽度',
    filedType: 'string'
  },

  imgHeight: {
    type: String,
    default: '100%',
    name: '图片高度',
    filedType: 'string'
  },
  objectFit: {
    type: String,
    default: 'none',
    name: '图片填充模式',
    filedType: 'select',
    options: [
      {
        name: '无',
        value: 'none'
      },
      {
        name: '填充',
        value: 'fill'
      },
      {
        name: '缩放',
        value: 'contain'
      },
      {
        name: '覆盖',
        value: 'cover'
      }
    ]
  },

  closeWidth: {
    type: String,
    default: '30px',
    name: '关闭按钮宽度',
    filedType: 'string'
  },
  closeHeight: {
    type: String,
    default: '30px',
    name: '关闭按钮高度',
    filedType: 'string'
  },
  closeFontSize: {
    type: String,
    default: '18px',
    name: '关闭按钮字体',
    filedType: 'string'
  },
  closeColor: {
    type: String,
    default: 'transparent',
    name: '关闭按钮颜色',
    filedType: 'color'
  },
  closeBgColor: {
    type: String,
    default: 'transparent',
    name: '关闭按钮背景',
    filedType: 'color'
  },
  closeHColor: {
    type: String,
    default: '#1276ff',
    name: '关闭按钮hover颜色',
    filedType: 'color'
  },
  closeHBgColor: {
    type: String,
    default: 'transparent',
    name: '关闭按钮hover背景',
    filedType: 'color'
  },
  clickFn: {
    type: Function,
    default: '',
    name: '点击事件函数',
    filedType: 'function'
  },
}

// Helvetica Neue,,宋体,Arial,Helvetica,sans-serif
